<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/common/includes.jsp" %>
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <title>采购内容预览</title>
	<%@ include file="/common/metaInput.jsp" %>  
	<script src="${ctx}/js/jsp/comm.js" type="text/javascript"></script>
	<script type="text/javascript" src="${ctx}/js/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript">
var grid;
$(function(){
	var column = [{ display: 'id', name: 'id', width: 1,hide: true },
  				 { display: 'zd002MaterId', name: 'zd002MaterId', width : 1,hide:true},
				 { display: '<font color="gray">物料编码</font>', name: 'zd003Code', width: 100 },
                 { display: '<font color="gray">物料名称</font>', name: 'zd004Name', width: 150 },
                 { display: '产品型号<font color="red">*</font>', name: 'zd006Model', width: 100 },
				 { display: '产品尺寸<font color="red">*</font>', name: 'zd023Size', width: 80 },
				 { display: '产品颜色<font color="red">*</font>', name: 'zd021Color', width: 80 },
				 { display: '产品材质<font color="red">*</font>', name: 'zd022Quality', width: 80},
                 { display: '数量<font color="red">*</font>', name: 'zd011Quatity', width: 60 },
                 { display: '单价<font color="red">*</font>', name: 'zd012Price', width: 60 },
                 { display: '单位<font color="red">*</font>', name: 'zd009Unit', width: 80 },
                 { display: '描述', name: 'zd025Descript', width: 150 }
                 ];
	grid = $("#table1").ligerGrid({
				  columns: column,
                  enabledEdit: true,
                  usePager: true,pageSize:1000,pageSizeOptions:[1000],
                  parms:[{ name : 'id' , value :$("#id").val()}],
                  url:"${ctx}/logic/purchase/gridItems.do",
                  width: "100%", height:'90%' 
                  });
	$("#pageloading").hide();


});


</script>

</head>

<body>
<input type="hidden" id="id" name="id" value="${id}"/>
 <div class="pageContent" >
        <div id="table1"> </div>               
    </div>
</body>
</html>
